@layout("/common/_container.html",{js:["/assets/business/cAdviceFeedback/cAdviceFeedback_edit.js"]}){

<div class="layui-body-header">
    <span class="layui-body-header-title">修改</span>
</div>

<div class="layui-fluid " style="">

    <div class="layui-card">
        <div class="layui-card-body">
            <div class="layui-form-item">
                <div class="layui-input-block">
                    <label class="layui-form-label">用户昵称</label>
                    <label class="layui-form-label" style="text-align: left">
                        ${cAdviceFeedback.userName}
                    </label>
                </div>
            </div>
            <div class="layui-form-item">
                <div class="layui-input-block">
                    <label class="layui-form-label">邮箱</label>
                    <label class="layui-form-label" style="text-align: left">
                        ${cAdviceFeedback.email}
                    </label>
                </div>
            </div>
            <div class="layui-form-item">
                <div class="layui-input-block">
                    <label class="layui-form-label">反馈内容</label>
                    <label class="layui-form-label" style="text-align: left">
                        ${cAdviceFeedback.content}
                    </label>
                </div>
            </div>

            @for(picture in cAdviceFeedbackPictures){
            <div class="layui-form-item">
                <div class="layui-input-block">
                    <label class="layui-form-label">图片</label>
                    <img  src="${picture}"
                          width="400px" height="224px" style="margin: 3px; border: black 2px"  ;/>
                </div>
            </div>
            @}

        </div>
    </div>


    <div class="layui-card">
        <div class="layui-card-body">
            <form id="cAdviceFeedbackForm" lay-filter="cAdviceFeedbackForm" class="layui-form model-form" style="">
                <input name="adviceId" value="${cAdviceFeedback.adviceId}" type="hidden"/>
                @if(cAdviceFeedback.replyStatus==0){
                <div class="layui-form-item">
                    <div class="layui-input-block">
                        <label class="layui-form-label">回复内容</label>
                        <div class="layui-input-block">
                            <textarea placeholder="请输入内容" class="layui-textarea" name="replyContent"></textarea>
                        </div>
                    </div>
                </div>

                <div class="layui-form-item">
                    <div class="layui-input-block" style="text-align:center">
                        <button class="layui-btn" lay-filter="btnSubmit" lay-submit>提交</button>
                    </div>
                </div>

                @}
                @if(cAdviceFeedback.replyStatus == 1){
                <div class="layui-form-item">
                    <div class="layui-input-block">
                        <label class="layui-form-label">回复内容</label>
                        <label class="layui-form-label" style="text-align: left">
                            ${cAdviceFeedback.replyContent}
                        </label>
                    </div>
                </div>
                <div class="layui-form-item">
                    <div class="layui-input-block" style="text-align:center">
                        <button class="layui-btn layui-btn-primary" type="button" id="backupPage">返回</button>
                    </div>
                </div>
                @}
            </form>
        </div>
    </div>
</div>

@}